package com.pureut.production.controller;

import com.pureut.common.core.web.controller.BaseController;
import com.pureut.common.core.web.page.TableDataInfo;
import com.pureut.production.domain.dto.WeighingFinishedMaterialProductDetailDto;
import com.pureut.production.domain.dto.WeighingFinishedMaterialProductDto;
import com.pureut.production.domain.vo.WeighingFinishedMaterialProductVo;
import com.pureut.production.service.WeighingFinishedMaterialProductDetailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/***
 * 成品称重表（物料明细table下）控制层
 * Author:C
 * Date:2023/02/24 16:17
 * @DESC
 */
@RestController
@RequestMapping("/weighing-finished-material-product-detail")
public class WeighingFinishedMaterialProductDetailController extends BaseController {

    @Resource
    WeighingFinishedMaterialProductDetailService weighingFinishedMaterialProductDetailService;

    /**
     * 成品称重表（物料明细table下）列表
     */
    @GetMapping("/list")
    public TableDataInfo getList(String productNumber) {
        startPage();
        //查询成品称重表（物料明细table下）列表
        List<WeighingFinishedMaterialProductDetailDto> list = weighingFinishedMaterialProductDetailService.getList(productNumber);
        return getDataTable(list);
    }
}
